package com.ruoyi.project.drug.service.impl;

import com.ruoyi.project.drug.domain.DrugFactory;
import com.ruoyi.project.drug.service.IDrugFactorySercice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DrugFactorySerciceImpl implements IDrugFactorySercice {
    @Autowired
    private com.ruoyi.project.drug.mapper.DrugFactoryMapper DrugFactoryMapper;
    @Override
    public List<DrugFactory> selectDrugFactoryList(DrugFactory DrugFactory) {
        return DrugFactoryMapper.selectDrugFactoryList(DrugFactory);
    }

    @Override
    public int insertDrugFactory(DrugFactory DrugFactory) {
        return DrugFactoryMapper.insertDrugFactory(DrugFactory);
    }

    @Override
    public int deleteDrugFactory(Long[] ids) {
        return DrugFactoryMapper.deleteDrugFactory(ids);
    }

    @Override
    public DrugFactory selectDrugFactoryById(Long factoryId) {
        return DrugFactoryMapper.selectDrugFactoryById(factoryId);
    }

    @Override
    public int updateDrugFactory(DrugFactory DrugFactory) {
        return DrugFactoryMapper.updateDrugFactory(DrugFactory);
    }
}
